const api = require('./index.js');

// 获取订单列表数据
export const ajaxGetOrderList = (params) => api.post('/order/getUserOrderOutVo', params)

// 获取订单详情
export const ajaxGetOrderDetails = (params) => api.post('/order/getAppletOrderDetail', params)

// 查询订单状态
export const ajaxQueryOrderState = (params) => api.post('/order/getAppletOrderDetail', params)

// 取消订单
export const ajaxCancelOrder = (params) => api.post('/order/appletCancelOrder', params)

// 核销订单
export const ajaxWriteOffOrder = (params) => api.post('/order/useOrder', params)

// 核销记录
export const ajaxGetAppletUseOrderList = (params) => api.post('/order/getAppletUseOrderList', params)

// 取消退款申请
export const ajaxCancelOrderApplyRefund = (params) => api.post('/order/cancelOrderApplyRefund', params)

// 退款申请
export const ajaxOrderApplyRefund = (params) => api.post('/order/orderApplyRefund', params)

// 退款审核列表
export const ajaxGetOrderRefundAuditList = (params) => api.post('/order/getOrderRefundAuditList', params)

// 审核退款
export const ajaxOperationRefundAudit = (params) => api.post('/order/operationRefundAudit', params)